﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PMS.Models.Base
{
    ///<summary>
    ///用户和组关系表的实体类
    ///</summary>
    [Serializable]
    [Table("User_Group")]
    public class User_Group
    {
        /// <summary>
        /// 用户表主键
        /// </summary>
        [Key]
        [Column("UserId",Order = 1)]
        public int UserId { get; set; }
        /// <summary>
        /// 组表主键
        /// </summary>
        [Key]
        [Column("GroupId",Order = 2)]
        public int GroupId { get; set; }
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateBy")]
        public int CreateBy { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateDate")]
        public System.DateTime CreateDate { get; set; }
        /// <summary>
        /// 更新人
        /// </summary>
        [Column("ModifyBy")]
        public int ModifyBy { get; set; }
        /// <summary>
        /// 更新时间
        /// </summary>
        [Column("ModifyDate")]
        public System.DateTime ModifyDate { get; set; }
    }
}